import Layout from '@/views/layout/Layout';

const _import = require('@/router/_import_' + process.env.NODE_ENV);

export default {
  path: '/system/auth',
  component: Layout,
  name: '服务管理',
  icon: 'setting',
  authority: 'authManager',
  children: [{
    path: 'service',
    component: _import('manage/auth/service/index'),
    name: '服务权限管理',
    authority: 'serviceManager'
  }, {
    path: 'api',
    component: _import('manage/auth/api/index'),
    name: '服务接口管理',
    authority: 'apiManager'
  }, {
    path: 'gateway',
    component: _import('manage/auth/gatewayRoute/index'),
    name: '网关路由管理',
    authority: 'gatewayManager'
  }, {
    path: 'oauthClientDetails',
    component: _import('manage/auth/oauthClientDetails/index'),
    name: 'OAuth客户端管理',
    authority: 'oauthClientDetailsManager'
  }]
}
